package com.xuecheng.content.controller;

import com.xuecheng.content.domain.Student;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = " 测试controller",description = "haha测试 swagger注解")
public interface HahApi {

    @ApiOperation("测试hello方法")
    String hello();


    @ApiOperation("测试modifyStudentNum方法")
    @ApiImplicitParam(name = "num",value = "学员id",required = true,dataType = "String",paramType = "query")
    Student modifyStudentNum(@RequestParam("num") String num);



    @ApiOperation("测试mofidyStudentBynNum方法")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",required = true,value = "学员id",dataType = "String",paramType = "path"),
            @ApiImplicitParam(name = "name",required = true,value = "学员姓名",dataType = "String",paramType = "query")
    })
    Student mofidyStudentBynNum(@PathVariable("id") String id, @RequestParam("name") String name, @RequestBody Student student);
}
